<?php if (!defined('THINK_PATH')) exit(); /*a:2:{s:54:"themes/admin_simpleboot3/user\admin_oauth\address.html";i:1560605454;s:78:"D:\WWW\20200511daka\cmfshop\public\themes\admin_simpleboot3\public\header.html";i:1560605454;}*/ ?>
<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <!-- Set render engine for 360 browser -->
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">

    <!-- HTML5 shim for IE8 support of HTML5 elements -->
    <!--[if lt IE 9]>
    <script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
    <![endif]-->


    <link href="/20200511daka/cmfshop/public/themes/admin_simpleboot3/public/assets/themes/<?php echo cmf_get_admin_style(); ?>/bootstrap.min.css" rel="stylesheet">
    <link href="/20200511daka/cmfshop/public/themes/admin_simpleboot3/public/assets/simpleboot3/css/simplebootadmin.css" rel="stylesheet">
    <link href="/20200511daka/cmfshop/public/static/font-awesome/css/font-awesome.min.css" rel="stylesheet" type="text/css">
    <!--[if lt IE 9]>
    <script src="https://cdn.bootcss.com/respond.js/1.4.2/respond.min.js"></script>
    <![endif]-->
    <style>
        form .input-order {
            margin-bottom: 0px;
            padding: 0 2px;
            width: 42px;
            font-size: 12px;
        }

        form .input-order:focus {
            outline: none;
        }

        .table-actions {
            margin-top: 5px;
            margin-bottom: 5px;
            padding: 0px;
        }

        .table-list {
            margin-bottom: 0px;
        }

        .form-required {
            color: red;
        }
    </style>
    <script type="text/javascript">
        //全局变量
        var GV = {
            ROOT: "/20200511daka/cmfshop/public/",
            WEB_ROOT: "/20200511daka/cmfshop/public/",
            JS_ROOT: "static/js/",
            APP: '<?php echo \think\Request::instance()->module(); ?>'/*当前应用名*/
        };
    </script>
    <script src="/20200511daka/cmfshop/public/themes/admin_simpleboot3/public/assets/js/jquery-1.10.2.min.js"></script>
    <script src="/20200511daka/cmfshop/public/static/js/wind.js"></script>
    <script src="/20200511daka/cmfshop/public/themes/admin_simpleboot3/public/assets/js/bootstrap.min.js"></script>
    <script>
        Wind.css('artDialog');
        Wind.css('layer');
        $(function () {
            $("[data-toggle='tooltip']").tooltip({
                container:'body',
                html:true,
            });
            $("li.dropdown").hover(function () {
                $(this).addClass("open");
            }, function () {
                $(this).removeClass("open");
            });
        });
    </script>
    <?php if(APP_DEBUG): ?>
        <style>
            #think_page_trace_open {
                z-index: 9999;
            }
        </style>
    <?php endif; ?>
</head>
<style>
    li {list-style-type:none;}
</style>
<body>
<div class="wrap js-check-wrap">
    <ul class="nav nav-tabs">
        <li class="active"><a href="javascript:;">所有地址</a></li>
    </ul>
    <form class="well form-inline margin-top-20" method="post" action="<?php echo url('AdminOauth/address'); ?>">
        地址:
        <input type="text" class="form-control" name="keyword" style="width: 200px;"
               value="<?php echo (isset($keyword) && ($keyword !== '')?$keyword:''); ?>" placeholder="请输入地址...">
        <input type="submit" class="btn btn-primary" value="搜索"/>
        <a class="btn btn-danger" href="<?php echo url('AdminOauth/address'); ?>">清空</a>
    </form>
    <form class="js-ajax-form" action="" method="post">
        <table class="table table-hover table-bordered table-list">
            <thead>
            <tr>
                <th width="50">ID</th>
                <th>昵称</th>
                <th width="">收货人</th>
                <th width="">地址</th>
                <th width="">手机</th>
                <th width="">默认地址</th>
            </tr>
            </thead>
            <?php if(is_array($address) || $address instanceof \think\Collection || $address instanceof \think\Paginator): if( count($address)==0 ) : echo "" ;else: foreach($address as $key=>$vo): ?>
                <tr>
                    <td><b><?php echo $vo['id']; ?></b></td>
                    <td><?php echo $vo['user_nickname']; ?></td>
                    <td><?php echo $vo['consignee']; ?></td>
                    <td><?php echo $vo['address']; ?></td>
                    <td><?php echo $vo['mobile']; ?></td>
                    <td>
                        <?php switch($vo['is_default']): case "1": ?>是<?php break; default: ?>--
                        <?php endswitch; ?>
                    </td>
                </tr>
            <?php endforeach; endif; else: echo "" ;endif; ?>
            <tfoot>

        </table>
        <ul class="pagination"><?php echo (isset($page) && ($page !== '')?$page:''); ?></ul>
    </form>
</div>
<script src="/20200511daka/cmfshop/public/static/js/layer.min.js"></script>

<script src="/20200511daka/cmfshop/public/static/js/admin.js"></script>
<script type="text/javascript">
    function detail(obj){
        var Id = obj.id;
        openIframeLayer("<?php echo url('Order/orderGoods'); ?>?id=" + Id, '订单详情', {
            area: ['900px', '500px'],
            btn: ['确定', '取消']
        });
    }
    function change(e){
        var Id = e.id;
        $.ajax({
            type: 'POST',
            dataType: 'json',
            url:"<?php echo url('Order/changeOrderStatus'); ?>",
            data:{'id':Id},
            success: function(obj){
                if(obj.status == 200){
                    layer.open({
                        content: obj.msg,
                        btn:['确定'],
                        shade:0.1,
                        icon:1,
                        end:function(){
                            $('#order_status_'+Id).html(obj.order_status);
                        }
                    });
                }else{
                    layer.open({
                        content: obj.msg,
                        btn:['确定'],
                        shade:0.1,
                        icon:2
                    });
                }
            }
        });
    }
</script>
</body>
</html>